package com.api.syh56.shengyunhui.entity.adminEntity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.time.LocalDateTime;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("admin_version")
public class AdminVersion {
    @Column(name = "id",isAutoIncrement = true,isKey = true)
    Long id;

    /**
     * 版本号
     */
    @Column(name = "version_number",comment = "版本号")
    String versionNumber;

    /**
     * 更新内容
     */
    @Column(name = "update_content",comment = "更新内容")
    String updateContent;

    /**
     * 更新url
     */
    @Column(name = "update_url",comment = "更新url")
    String updateUrl;


    @Column(name = "creation_time",comment = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    LocalDateTime creationTime;

    @Column(name = "last_modification_time") // 最后修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastModificationTime;
}
